package IOperation;

import Book.Book;
import Book.BookList;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-01-02
 * Time: 20:16
 */
public class ShowOperation implements Operation{
    @Override
    public void work(BookList bookList) {
        System.out.println("*****显示图书*****");
        int size=bookList.getUseSize();
        for (int i = 0; i < size; i++) {
             Book book=bookList.getBook(i);
            System.out.println(book.toString());
        }


    }
}



